package com.cloudsdo.cameratest.dao;

import android.content.Context;

import com.cloudsdo.cameratest.database.BaseDaoImpl;

/**
 * -----------------------------------------------------------------
 * Copyright (C) 2014-2016, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * File: StudentDao.java
 * Author: win7
 * Version: V100R001C01
 * Create: 2019/7/4 20:48
 * Changes (from 2019/7/4)
 * -----------------------------------------------------------------
 * 2019/7/4 : Create StudentDao.java (win7);
 * -----------------------------------------------------------------
 */
public class StudentDao extends BaseDaoImpl {

    public StudentDao(Context context, Class clazz) {
        super(context, clazz);
    }

    public boolean isExist(String nfcCode){
        Student student= (Student) query("nfcCode",nfcCode);
        return student==null?false:true;
    }
}
